package com.project.bean;

/**
 * @Author(王思翰)
 * @Description(类的描述)城市实体类
 * @Date(创建时间) 2021/7/22 14:59
 */
public class CityBean {
    /**
     * 城市id
     */
    private int id;
    /**
     * 城市名字
     */
    private String name;
    /**
     * 所属国家
     */
    private ContryBean contryBean;

    public CityBean(String name, ContryBean contryBean) {
        this.name = name;
        this.contryBean = contryBean;
    }

    public CityBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ContryBean getContryBean() {
        return contryBean;
    }

    public void setContryBean(ContryBean contryBean) {
        this.contryBean = contryBean;
    }

    @Override
    public String toString() {
        return "CityBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", contryBean=" + contryBean +
                '}';
    }
}
